CC = g++
CFLAGS = -std=c++17 -g 
LDFLAGS = -lmuduo_net -lmuduo_base -lgtest -lprotobuf -lsqlite3 -lpthread -lz
SRC = mq_server.cc ../mqcomm/proto/mq_msg.pb.cc ../mqcomm/proto/mq_protocol.pb.cc ../mqthird/include/muduo/proto/codec.cc
INC = -I../mqthird/include
LIB = -L../mqthird/lib

server:$(SRC)
	$(CC) -o $@ $(SRC) $(CFLAGS) $(INC) $(LIB) $(LDFLAGS)
.PHONY:clean
clean:
	rm -f server